import 'package:flutter_app/util/SharedPreferencesUtil.dart';

class SPHelp {
  SharedPreferencesUtil sp = SharedPreferencesUtil.instance;

  final String _userNameKey = "user_name";

  void setUserName(String name) {
    sp.setString(_userNameKey, name);
  }

  String getUserName() {
    sp.getString(_userNameKey).then((value) {
      return value;
    }).catchError((error) {
      return "";
    });
  }
}